package web

import (
	"gitee.com/xgotool/sqlite-logs-more/service/rootdb"
	"gitee.com/xiaoyutab/xgotool/xgin"
	"github.com/gin-gonic/gin"
)

// 获取app日志中的args分组
//
//	GET	files
func Files(c *gin.Context) *xgin.Response {
	count, lis, err := rootdb.FileListPage(c.GetInt("offset"), c.GetInt("limit"))
	if err != nil {
		return xgin.Resp().Error(err)
	}
	return xgin.Resp().Page(c, lis, count)
}
